/*
* Copyright 2010 ANDAGO INGENIERIA S.L.
*
* Licensed under the EUPL, Version 1.1 only (the "Licence");
* You may not use this work except in compliance with the
* Licence.
* You may obtain a copy of the Licence at:
*
* http://ec.europa.eu/idabc/eupl
*
* Unless required by applicable law or agreed to in
* writing, software distributed under the Licence is
* distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied.
* See the Licence for the specific language governing
* permissions and limitations under the Licence.
*/

package com.andago.bean;

import java.text.SimpleDateFormat;
import java.util.Date;



public class Device {
	
	private String variable;
	private int code_variable;
	private String device_name;
	private String address_name;
	private String date;

	
	

	public Device(String variable, String device_name, String address_name) {
		this.setVariable(variable);
		this.setDevice_name(device_name);
		this.setAddress_name(address_name);
		
		Date now=new Date(System.currentTimeMillis());
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss'Z'");	  
		
		this.setDate(sdf.format(now));
		
	}



	public void setVariable(String variable) {
		this.variable = variable;
	}



	public String getVariable() {
		return variable;
	}



	public void setDevice_name(String device_name) {
		this.device_name = device_name;
	}



	public String getDevice_name() {
		return device_name;
	}



	public void setAddress_name(String address_name) {
		this.address_name = address_name;
	}



	public String getAddress_name() {
		return address_name;
	}



	public void setDate(String date) {
		this.date = date;
	}



	public String getDate() {
		return date;
	}



	public void setCode_variable(int code_variable) {
		this.code_variable = code_variable;
	}



	public int getCode_variable() {
		return code_variable;
	}
	
	
	

}
